package com.smdk.dsminio.entity;

import java.util.Date;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
 * bucket信息表(DsminioBucketInfo)表实体类
 *
 * @author 神秘的凯
 * @since 2020-10-28 16:28:58
 */
@Data
@ApiModel(value = "DsminioBucketInfo信息表")
@TableName("dsminio_bucket_info")
public class DsminioBucketInfo extends Model<DsminioBucketInfo> {

    /**
     * 
     *ID
     *
     */
    @ApiModelProperty(value = "ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;



   /**
    * 
    *用户ID
    *
    */
    @ApiModelProperty(value = "用户ID")
    private Long userId;
    
   /**
    * 
    *Bucket名称
    *
    */
    @ApiModelProperty(value = "Bucket名称")
    private String bucketName;
    
   /**
    * 
    *Bucket排序
    *
    */
    @ApiModelProperty(value = "Bucket排序")
    private Integer bucketOrder;
    
   /**
    * 
    *Bucket空间
    *
    */
    @ApiModelProperty(value = "Bucket空间")
    private Long bucketSize;
    
   /**
    * 
    *Bucket对象数量
    *
    */
    @ApiModelProperty(value = "Bucket对象数量")
    private Integer bucketObjectCount;
    
   /**
    * 
    *访问权限
    *
    */
    @ApiModelProperty(value = "访问权限")
    private Integer accessRight;
    
   /**
    * 
    *Bucket创建时间
    *
    */
    @ApiModelProperty(value = "Bucket创建时间")
    private Date createDateTime;

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
    }